package cn.ekuma.epos.crm.contract.model;

import cn.ekuma.data.ui.swing.AbstractDTOTableModel;

import com.openbravo.bean.crm.contract.ContractFollow;
import com.openbravo.bean.shard.I_StateFollow;
import com.openbravo.pos.base.AppLocal;

public class ContractFollowTableModel extends AbstractDTOTableModel<ContractFollow>{

	@Override
	public Object getValueAt(int rowIndex, int columnIndex) {
		I_StateFollow obj=getObj(rowIndex);
		switch(columnIndex){    
		case 0:
			return obj.getCallTime();
		case 1:
			return obj.getRelationMan();
		case 2:
			return obj.getState();
		case 3:
			return obj.getNextTime();
		case 4:
			return obj.getPriority();
		case 5:
			return obj.getMemo();
		}
		return null;
	}

	@Override
	public String[] getColumnNames() {
		return new String[]{
				AppLocal.getIntString("label.I_StateFollow.callTime"),
				AppLocal.getIntString("label.I_StateFollow.relationMan"),
				AppLocal.getIntString("label.I_StateFollow.state"),
				AppLocal.getIntString("label.I_StateFollow.nextTime"),
				AppLocal.getIntString("label.I_StateFollow.priority"),
				AppLocal.getIntString("label.I_StateFollow.memo")
		};
	}

}
